package com.google.code.tretris.network.connection;

import java.util.Collection;

import org.jivesoftware.smack.PacketListener;

import com.google.code.tretris.network.exceptions.ConnectionFailedException;
import com.google.code.tretris.network.exceptions.NotConnectedException;
import com.google.code.tretris.network.peers.NetworkClient;

public interface TretrisConnectionHandlerInterface {

	public abstract void disconnect() throws NotConnectedException;
	public abstract Collection<NetworkClient> connect(String username, String password, PacketListener packetlister) throws ConnectionFailedException;
	public abstract void send(String message, String to) throws NotConnectedException;
	public abstract void broadcast(String message, Collection<NetworkClient> toAll) throws NotConnectedException;

}
